/*
 * @Author: 吴世扬 18368095041@163.com
 * @Date: 2022-10-09 10:31:28
 * @LastEditors: 吴世扬 18368095041@163.com
 * @LastEditTime: 2022-10-11 10:41:31
 * @FilePath: /vue3-datav/src/assets/rules/loginRules.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import type { FormRules } from 'element-plus';

export const loginRules: FormRules = {
    username: [
        {
            required: true,
            trigger: 'blur',
            message: '用户名不能为空'
        }
    ],
    password: [
        {
            required: true,
            trigger: 'blur',
            message: '密码不能为空'
        }
    ],
    captcha: [
        {
            required: true,
            trigger: 'change',
            message: '验证码不能为空'
        }
    ]
};
